# How to upload an SSH key ## Generate an SSH key Use an Ed25519 key unless your system requires a different key type. ### Windows 1. Open **PowerShell**. 2. Run `ssh-keygen -t ed25519 -C "you@example.com"`. 3. Press **Enter** to accept the default file location. 4. Optionally enter a passphrase when prompted. 5. Copy the public key with `Get-Content $env:USERPROFILE\.ssh\id_ed25519.pub`. ### macOS 1. Open **Terminal**. 2. Run `ssh-keygen -t ed25519 -C "you@example.com"`. 3. Press **Enter** to accept the default file location. 4. Optionally enter a passphrase when prompted. 5. Copy the public key with `cat ~/.ssh/id_ed25519.pub`. ### Linux 1. Open your terminal. 2. Run `ssh-keygen -t ed25519 -C "you@example.com"`. 3. Press **Enter** to accept the default file location. 4. Optionally enter a passphrase when prompted. 5. Copy the public key with `cat ~/.ssh/id_ed25519.pub`. ## Upload the key to NobGit 1. Click your account menu in the top right. 2. Click **Settings**. 3. Open **Access**. 4. Open **Git access**. 5. Find **Optional SSH key**. 6. Enter a recognizable **Key name**, such as `Work laptop`. 7. Paste the public key into **Public key**. It should start with a type such as `ssh-ed25519`. 8. Select **Add SSH key**. Use the SSH clone URL shown in the repository clone panel after the key is saved. - [Previous: access token](How to create an access token.md) - [Next: GPG key](How to upload a GPG key.md)